<template>
  <div id="app">
    <el-container>
      <el-header height="200px">
        <div style="width: 1200px">
          <img src="../assets/logo1.jpg" style="width: 150px;vertical-align: middle" alt="">
          <div style="float: right;position: relative;top: 55px">
            <el-input placeholder="请输入搜索内容" v-model="wd">
              <el-button slot="append" icon="el-icon-search" @click="search()"></el-button>
            </el-input>
          </div>
        </div>
        <div style="background-color: bisque;text-align: center;margin-top: 20px">
          <el-menu style="width: 1200px;margin: 0 auto"
                   :default-active="activeIndex"
                   class="el-menu-demo"
                   mode="horizontal"
                   @select="handleSelect"
                   background-color="bisque"
                   text-color="black"
                   active-text-color="black">
            <el-menu-item v-for="c in categoryArr" :index="c.id">{{c.name}}</el-menu-item>
          </el-menu>
        </div>
      </el-header>
      <el-main>
        <!--商品列表开始-->
        <el-row gutter="20" style="width: 1200px;margin: 0 auto">
          <el-col style="margin: 10px 0" span="24" v-for="p in productArr">
            <el-card style="height: 260px">
              <div style="float: left;text-align: center">
                <a :href="'/detail.html?id='+p.id">
                  <img class="p_img" :src="p.url" width="200px" alt="">
                </a>
              </div>
              <div style="float: left;width:800px;margin-top: 50px">
                <p style="font-size: 25px;height: 40px;margin-top: 0">
                  <a style="text-decoration: none;color: #3f3f3f" :href="'/detail.html?id='+p.id">
                    {{p.title}}
                  </a>
                </p>
                <p style="font-size: 30px;color: red">
                  ￥{{p.price}}
                  <span style="font-size: 15px;color: #666">原价:<s>{{p.oldPrice}}</s></span>
                  <span style="float: right;font-size: 20px;color: #666">销量:{{p.saleCount}}件</span>
                </p>
              </div>
            </el-card>
          </el-col>
        </el-row>
        <!--商品列表结束-->
      </el-main>
      <el-footer>
        <div style="height: 100px;padding: 10px;text-align: center; margin-top:0px; color: #b0b0b0;background-color: #6c6c6c; width: 100%">
          <template>
            <div style="margin-top: 20px">
              <span>京ICP证041189号</span>
              <span>出版物经营许可证</span>
              <el-divider direction="vertical"></el-divider>
              新出发京批字第直0673号
              <el-divider direction="vertical"></el-divider>
              <span> 食品经营许可证：JY11101050363440</span> <br>
              <div style="margin-top: 10px">
                <span>京ICP备17043473号-1</span>
                <el-divider direction="vertical"></el-divider>
                <span>京公网安备11010502037644号</span>
                <el-divider direction="vertical"></el-divider>
                <span>经营许可证编号：合字B2-20160011</span>
                <el-divider direction="vertical"></el-divider>
                <span>互联网药品信息服务资格证</span>
              </div>
            </div>
          </template>
        </div>
      </el-footer>
    </el-container>
  </div>
</template>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
export default {
  data(){
    return {
      productArr:[{title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"../assets/pictures/摄影/c1.jpg",saleCount:2342},
        {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"../assets/pictures/摄影/c2.jpg",saleCount:2342},
        {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"../assets/pictures/摄影/c1.jpg",saleCount:2342},
        {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"../assetspictures/摄影/c1.jpg",saleCount:2342},
        {title:"BEASTER小恶魔鬼脸明星同款夹克毛绒保暖加厚字母印花宽松外套ins",price:233,oldPrice:598,url:"../assets/pictures/摄影/c1.jpg",saleCount:2342},
        {title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"../assets/pictures/摄影/c1.jpg",saleCount:2342},
        {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"../assets/pictures/摄影/c1.jpg",saleCount:2342}],
      categoryArr: [{id:1,name:"摄影"},{id:2,name:"政治军事"},{id:3,name:"儿童读物"},{id:4,name:"科普读物"},
        {id:5,name:"励志与成功"},{id:6,name:"金融与投资"},{id:7,name:"电子与通信"},{id:8,name:"科学与自然"},
        {id:9,name:"美食与烹饪"},{id:10,name:"运动与健身"}],
      activeIndex:"",
      input:"",
      wd:""
    }
  },
  methods:{
    handleSelect(){
    }
  }

}
</script>

<style scoped>

</style>